/**
*  \file config.h
*
*  \brief Global configuration.
*
*  \author Michael J. Hohmann <michael.hohmann@linde-mh.de>
*
*  Global configuration to control program generation. This is the right place to
*  add additional switches to control debug, trace or management of variants.
*
*/

#ifndef CONFIG_H_INCLUDED
#define CONFIG_H_INCLUDED

/*================================================[ public defines   ]================================================*/

/** Inline.
*
* Wraper for the inline keyword. The keyword inline is defined in ANSI 99 but
* various (non ANSI 99) compiler support this feature, but sometimes with an
* other notation.
*/
#define INLINE

#define STATIC_INLINE static inline
/** Restricted.
*
* Wraper for the restricted keyword. The keyword restricted is defined in
* ANSI 99. For non ANSI99 compiler this define should be empty.
*/
#define RESTRICTED
#define RESTRICT

/** Register.
*
* Wraper for the register keyword. The keyword register is part of the ANSI
* definition but is suspected (by Misra) to cause problems.
* Anyway it can be handled with use of this wrapper.
*/
#define REGISTER  register


/** Unreferenced
*
*  The UNREFERENCED macro have to be used to indicate that the variable or parameter
*  is unused and is not refereced. The use of this macro can also prevent compiler
*  warnings.
*/
#define UNREFERENCED(arg)   ((void)arg)
#define  TS0   0.000250F        /* fast      task sample time in sec */
#define  TS1   0.002000F        /* intermed. task sample time in sec */
#define  TS    0.010000F        /* basic     task sample time in sec */
#define  PI    3.14159265358979323846F
#define  ZPI   (PI*2.0F)
#define  HPI   (PI/2.0F)


/*====================================================================================================================*/

#endif

/***********************************************************************************************************************
*                             Copyright 2008 Linde Material Handling. All rights reserved.                             *
***********************************************************************************************************************/
